package com.codeyang.feign.hystrix;

import com.codeyang.domain.Prod;
import com.codeyang.feign.IndexImgProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 描述: 远程调用返回的熔断接口
 *
 * @author CodeYang_Site
 * @version 2021/5/26 15:06
 */
@Slf4j
@Component
public class IndexImgProdFeignHystrix implements IndexImgProdFeign {


    /**
     * 远程调用根据商品id查询商品信息
     *
     * @param prodId
     * @return
     */
    @Override
    public Prod getProdInfoById(Long prodId) {
        log.error("远程调用根据商品id:{}查询商品信息", prodId);
        return null;
    }
}
